var checkdevice = function getdevice() {
    var dvinfo = navigator.userAgent;
    //判断是否为windows
    if (dvinfo.indexOf("iPhone") != -1 || dvinfo.indexOf("iPad") != -1) {
        return 'ios';
    } else if (dvinfo.indexOf("Android") != -1) {
        return 'android';
    } else {
        return 'pc';
    }
};